<include file="header" />
<script type="text/javascript">
	$(function(){
		$('a[rel*=facebox]').facebox();
		$('#file_upload').uploadify({
			'uploader'		: '__PUBLIC__/swf/uploadify.swf',
			'script'		: '/index.php?s=/ajax/upload/',
			'cancelImg'		: '/uploadify/cancel.png',
			'folder'		: '__PUBLIC__/uploads',
			'queueID'		: 'upload_queue',
			'auto'			: true,
			'onComplete'	: function(event, ID, fileObj, response, data) {
			var str = '<li><input name="images[]" type="text" value="'+response+'" size="50"/> ';
				str += '[<a rel="facebox" title="点击查看图片" href="__PUBLIC__/uploads/'+response+'">预览</a> ]';
				str += 	'[<a class="del_image" iid="'+response+'">删除</a>]</li>';
				$("#image_list").append(str);
				$('a[rel*=facebox]').facebox();
			}
		});
		$('.del_image').click(function(){
			$(this).parent().remove();
		})
	})
</script>
<div id="content">
<form method="post" action="__URL__/update">
	<table width="98%" class="manager_public_tab" align="center" width="80%" border="0" cellpadding="0" cellspacing="1" >
		<tr>
			<td>活动名称</td>
			<td><input name="name" value="{$activity_info.name}" type="text"></td>
		</tr>
		<tr>
			<td>景点照片</td>
			<td>
				<div id="image_list">
				<volist name="activity_info.scenic_images" id="vo">
					<li>
						<input name="images[]" type="text" value="{$vo}" size="50"/>
						[<a rel="facebox" title="点击查看图片" href="__PUBLIC__/uploads/{$vo}">预览</a> ]
						[<a class="del_image" iid="{$vo.id}">删除</a>]
					</li>
				</volist>
				</div>
				<input id="file_upload" type="file"/>
			</td>
		</tr>
		<tr>
			<td>活动开始时间</td>
			<td><input name="start_time" value="{:date('Y-m-d H:i',$activity_info['start_time'])}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" type="text"></td>
		</tr>
		<tr>
			<td>活动结束时间</td>
			<td><input name="end_time" value="{:date('Y-m-d H:i',$activity_info['end_time'])}"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" type="text"></td>
		</tr>
		<tr>
			<td>活动最少人数</td>
			<td><input value="{$activity_info.min_people}" name="min_people" type="text"></td>
		</tr>
		<tr>
			<td>活动最多人数</td>
			<td><input value="{$activity_info.max_people}" name="max_people" type="text"></td>
		</tr>
		<tr>
			<td>年龄范围</td>
			<td><input value="{$activity_info.min_age}" name="min_age" type="text"> 到 
				<input value="{$activity_info.max_age}" name="max_age" type="text"></td>
		</tr>
		<tr>
			<td>活动注意事项</td>
			<td><textarea name="notice">{$activity_info.notice}</textarea></td>
		</tr>
		<tr>
			<td>活动说明</td>
			<td><textarea name="explain">{$activity_info.explain}</textarea></td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit"></td>
		</tr>
	</table>
	<input type="hidden" name="id" value="{$activity_info.id}" />
</form>
	
	
	
</div>
<include file="footer" />